<html>
<head>
	<title></title>
	<script type="text/javascript">

	var Vehicle = (function (){
	    function InnerVehicle(year, make, model)
	    {
	        this.year = year;
	        this.make = make;
	        this.model = model;
	    } 

	    InnerVehicle.prototype.getInfo = function ()
	    {
	        return this.year + ' ' + this.make + ' ' + this.model;
	    };

	    InnerVehicle.prototype.startEngine = function ()
	    {
	        return 'Vroom';
	    };

	    return InnerVehicle;
	})();

	var Car = (function (parent) {
		InnerCar.prototype = new Vehicle();
		InnerCar.prototype.constructor = InnerCar;
		function InnerCar(year, make, model) {
			this.wheelQuantity = 4;		
			parent.call(this, year, make, model);
		}	
		InnerCar.prototype.getInfo = function () {
			return 'Vehicle Type: Car ' + parent.prototype.getInfo.call(this);
		};
		return InnerCar;
	})(Vehicle);

	var v = new Vehicle(1,"make","model");
	console.debug(v.getInfo());

	var c = new Car(1,"make","model");
	console.debug(c.getInfo());
	</script>
</head>
<body>
<script type="text/javascript">

</script>
</body>
</html>